<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!--detail-content-->
<div class="detail-content">
    <div id="content-detail">
        <script type="text/html" id="tpl-content">
            <!--title-->
            <div class="title">
                <h2>{{resultList.title}}</h2>
                <p>{{formatTime resultList.create_time}}</p>
            </div>
            <!--/title-->
            <!--content-->
            <div class="content">
                <p>{{#resultList.content}}</p>
            </div>
            <!--/content-->
        </script>
    </div>
</div>
<script>
    $(function(){
        $.ajax({
            url: _basePath + "/app/member/notice",
            dataType: 'json',
            data:{
                id:${id}
            },
            success: function (data) {
                if(typeof data.resultList != undefined && data.resCode == 0) {
                    var _html = template('tpl-content', data);
                    $("#content-detail").append(_html);
                }
            }
        });
    })
</script>